package cn.gaily.eduorder.feignclient;

import cn.gaily.commonutils.CourseInfoVoOrder;
import cn.gaily.commonutils.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(name = "serviceEdu")
public interface EduClient {
    @ApiOperation(value = "获得课程基本信息给订单")
    @GetMapping("/eduservice/course/getCourseInfoToOrder/{couserId}")
    public CourseInfoVoOrder getCourseInfoToOrder(@PathVariable String couserId);

}
